public Response Add(DeveloperDocuments value) { Response response = new Response(); try { using (IDbConnection conn = GetConnection()) { conn.Insert(value); response.Status = true; response.Description = "Successful"; } } catch (Exception ex) { response.Status = false; response.Description = ex.Message; } return(response); }
public Response Put([FromBody] DeveloperDocuments value) { return(repo.Update(value)); }
public Response Post([FromBody] DeveloperDocuments value) { return(repo.Add(value)); }