/// <summary> /// API to change status of employee /// </summary> /// <param name="employee"></param> /// <returns></returns> public IHttpActionResult PostChangeStatus(Employee employee) { _Logger.Info("PostEditEmployee API called."); try { bool Check = _BusinessOperations.ChangeStatus(employee); if (Check == false) { return(NotFound()); } else { return(Ok(employee)); } } catch (EmployeeManagementExceptions exception) { _Logger.Error(exception.ToString()); return(InternalServerError(exception)); } catch (Exception ex) { _Logger.Fatal(ex.ToString()); return(InternalServerError(ex)); } }