Exemple #1
0
        public async Task <IActionResult> PostStaffFeedback([FromBody] StaffFeedback staffFeedback)
        {
            _dbcontext.StaffFeedbacks.Add(staffFeedback);
            await _dbcontext.SaveChangesAsync();

            return(Ok());
        }
 public void Put(string id, [FromBody] StaffFeedback staffFeedback)
 {
     _dbcontext.Entry(_dbcontext.StaffFeedbacks.Where(X => X.Empid == id).FirstOrDefault()).CurrentValues.SetValues(staffFeedback);
     _dbcontext.SaveChanges();
 }
 public void Post([FromBody] StaffFeedback staffFeedback)
 {
     _dbcontext.StaffFeedbacks.Add(staffFeedback);
     _dbcontext.SaveChanges();
 }