public async Task <IActionResult> PutProjectCategoryMaster(int id, ProjectCategoryMaster projectCategoryMaster)
        {
            if (id != projectCategoryMaster.Id)
            {
                return(BadRequest());
            }

            //_context.Entry(projectCategoryMaster).State = EntityState.Modified;

            projectCategoryMaster.ModifiedIp = Request.HttpContext.Connection.RemoteIpAddress.ToString();
            projectCategoryMaster.ModifiedOn = DateTime.Now;
            _context.Attach(projectCategoryMaster);
            _context.Entry(projectCategoryMaster).Property("Name").IsModified        = true;
            _context.Entry(projectCategoryMaster).Property("Description").IsModified = true;
            _context.Entry(projectCategoryMaster).Property("Status").IsModified      = true;
            _context.Entry(projectCategoryMaster).Property("ModifiedIp").IsModified  = true;
            _context.Entry(projectCategoryMaster).Property("ModifiedOn").IsModified  = true;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!ProjectCategoryMasterExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }
        public async Task <ActionResult <ProjectCategoryMaster> > PostProjectCategoryMaster(ProjectCategoryMaster projectCategoryMaster)
        {
            projectCategoryMaster.CreatedIp = Request.HttpContext.Connection.RemoteIpAddress.ToString();
            _context.ProjectCategoryMaster.Add(projectCategoryMaster);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetProjectCategoryMaster", new { id = projectCategoryMaster.Id }, projectCategoryMaster));
        }