Esempio n. 1
0
        public IActionResult PostAsync([FromBody] WorkdsInRelationship body)
        {
            var result = crudService.Find();

            if (result == null)
            {
                return(BadRequest());
            }
            return(Ok(result));
        }
Esempio n. 2
0
        public async Task <bool> Add(WorkdsInRelationship worksInRelationship)
        {
            try
            {
                CrudReposiory.Add(worksInRelationship);
                return(true);
            }
            catch (Exception)
            {
                return(false);

                throw;
            }
        }
Esempio n. 3
0
 public void Add(WorkdsInRelationship worksInRelationship)
 {
     Console.WriteLine("helloooo");
 }