Added the workcategory in WorkItem

This commit is contained in:
ashutosh.nehete 2025-07-10 14:59:28 +05:30
parent 60517f3f60
commit 40ce4ced42

View File

@ -894,7 +894,7 @@ namespace MarcoBMS.Services.Controllers
}, },
WorkCategoryMaster = new WorkCategoryMasterMongoDB WorkCategoryMaster = new WorkCategoryMasterMongoDB
{ {
Id = wi.ActivityId.ToString(), Id = wi.WorkCategoryId.ToString() ?? "",
Name = wi.WorkCategoryMaster != null ? wi.WorkCategoryMaster.Name : "", Name = wi.WorkCategoryMaster != null ? wi.WorkCategoryMaster.Name : "",
Description = wi.WorkCategoryMaster != null ? wi.WorkCategoryMaster.Description : "" Description = wi.WorkCategoryMaster != null ? wi.WorkCategoryMaster.Description : ""
}, },