31 lines
1.2 KiB
C#
31 lines
1.2 KiB
C#
using Marco.Pms.DataAccess.Data;
|
|
using Marco.Pms.Model.Dtos.Inventory;
|
|
using Marco.Pms.Model.Employees;
|
|
using Marco.Pms.Model.Utilities;
|
|
using Marco.Pms.Services.Service.ServiceInterfaces;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Marco.Pms.Services.Service
|
|
{
|
|
public class InventoryService : IInventoryService
|
|
{
|
|
private readonly ApplicationDbContext _context;
|
|
public InventoryService(ApplicationDbContext context)
|
|
{
|
|
_context = context;
|
|
}
|
|
#region =================================================================== Items APIs ===================================================================
|
|
public async Task<ApiResponse<object>> CreateItemAsync(ItemDto model, Employee loggedInEmployee, Guid tenantId)
|
|
{
|
|
var item = await _context.ProductDetails.FirstOrDefaultAsync();
|
|
return ApiResponse<object>.SuccessResponse(new { }, "", 200);
|
|
}
|
|
public async Task<ApiResponse<object>> SuspendItemAsync(Guid id, bool isActive, Employee loggedInEmployee, Guid tenantId)
|
|
{
|
|
var item = await _context.ProductDetails.FirstOrDefaultAsync();
|
|
return ApiResponse<object>.SuccessResponse(new { }, "", 200);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|