Exemplo n.º 1
0
        public IHttpActionResult DeleteEmployeeDetails(int id)
        {
            string result = "";

            if (id != 0)
            {
                try
                {
                    string CreatedBy = GlobalFunction.getLoggedInUser(Request.Headers.GetValues("Token").First());
                    result = objEmployeeDetailsVM.DeleteEmployeeDetails(id, CreatedBy);
                }
                catch (Exception ex)
                {
                    ErrorHandlerClass.LogError(ex);
                    result = ex.Message;
                }
            }
            else
            {
                result = "Enter Valid Mandatory Fields";
            }
            return(Ok(new { results = result }));
        }